gdk: Drop GDK_SOURCE_CURSOR
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 28 Jul 2020 13:25:28 +0000 (15:25 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 28 Jul 2020 13:25:28 +0000 (15:25 +0200)
Looking at the xf86-input-wacom driver code, this is not even a thing
anymore. Drop this device type, in modern days there's
GDK_DEVICE_TOOL_TYPE_MOUSE for this.

gdk/gdkdevice.h
gdk/gdkseatdefault.c
gdk/x11/gdkdevicemanager-xi2.c

index 7fe2aebb84806d1ebdfb36d14ed1c811022bb0fc..b15c4d2aa9b3bfbeb0297ce244bd6183c277d9bb 100644 (file)
@@ -40,7 +40,6 @@ typedef struct _GdkTimeCoord GdkTimeCoord;
  * @GDK_SOURCE_MOUSE: the device is a mouse. (This will be reported for the core
  *                    pointer, even if it is something else, such as a trackball.)
  * @GDK_SOURCE_PEN: the device is a stylus of a graphics tablet or similar device.
- * @GDK_SOURCE_CURSOR: the device is a graphics tablet “puck” or similar device.
  * @GDK_SOURCE_KEYBOARD: the device is a keyboard.
  * @GDK_SOURCE_TOUCHSCREEN: the device is a direct-input touch device, such
  *     as a touchscreen or tablet
@@ -56,7 +55,6 @@ typedef enum
 {
   GDK_SOURCE_MOUSE,
   GDK_SOURCE_PEN,
-  GDK_SOURCE_CURSOR,
   GDK_SOURCE_KEYBOARD,
   GDK_SOURCE_TOUCHSCREEN,
   GDK_SOURCE_TOUCHPAD,
index 04906898fdff400c04d7deae9d0ec235b7c48a1d..bf7537ef5a8a745927c71fda6d54eb1727dbe3a8 100644 (file)
@@ -228,7 +228,6 @@ device_get_capability (GdkDevice *device)
     case GDK_SOURCE_TOUCHSCREEN:
       return GDK_SEAT_CAPABILITY_TOUCH;
     case GDK_SOURCE_PEN:
-    case GDK_SOURCE_CURSOR:
       return GDK_SEAT_CAPABILITY_TABLET_STYLUS;
     case GDK_SOURCE_TABLET_PAD:
       return GDK_SEAT_CAPABILITY_TABLET_PAD;
index 67dccb5b87d3d82ab1cf7ca0d553b0f75f702bc5..69b6cbde76c7df74b6f5cb11d7e96df4e63576e8 100644 (file)
@@ -489,9 +489,7 @@ create_device (GdkX11DeviceManagerXI2 *device_manager,
 
       tmp_name = g_ascii_strdown (dev->name, -1);
 
-      if (strstr (tmp_name, "cursor"))
-        input_source = GDK_SOURCE_CURSOR;
-      else if (strstr (tmp_name, " pad"))
+      if (strstr (tmp_name, " pad"))
         input_source = GDK_SOURCE_TABLET_PAD;
       else if (strstr (tmp_name, "wacom") ||
                strstr (tmp_name, "pen") ||